package com.hitqz.robot.biz.flow.component.common;

import cn.hutool.json.JSONObject;
import com.hitqz.robot.biz.flow.domain.constant.FlowConstant;
import com.hitqz.robot.biz.flow.util.LiteFlowUtil;
import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.NodeComponent;
import lombok.extern.slf4j.Slf4j;

/**
 * 步骤组件
 *
 * @author wengyx
 * @date 2023/11/19
 */
@LiteflowComponent(value = "ThrowException",name = "[通用组件]抛异常")
@Slf4j
public class ThrowException extends NodeComponent {
    @Override
    public void process() throws Exception {
        //通过规则中的.data()获取参数
        log.info("测试抛异常");
        throw new Exception("测试抛异常");
    }
}
